package com.dunjx.oauth.uitl;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;


@Data

@SuppressWarnings("ALL")
public class UserJwt extends User {
    //用户ID
    private String id;
    //用户名字
    private String name;
    //设置公司
    private String comny;
    // 存放载荷的信息可以自己增加

    public UserJwt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }


}
